package com.whu.zqm.service.impl;

import com.whu.zqm.domain.Ps;
import com.whu.zqm.dao.PsDao;
import com.whu.zqm.service.IPsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Wrapper;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zqm
 * @since 2022-10-28
 */
@Service
public class PsServiceImpl extends ServiceImpl<PsDao, Ps> implements IPsService {
    @Autowired
    PsDao psd;


    @Override
    public Ps add(Ps ps) {
        psd.insert(ps);
        return ps;
    }

    @Override
    public Ps get(long id) {
        return psd.selectById(id);
    }

    @Override
    public void deletePs(long id) {
        psd.delete(null);
    }
}
